﻿
using System;
using System.Collections.Generic;
using System.Windows.Input;
using System.Windows.Threading;
using NetClientFramework.ViewModel;

namespace Demo.Snake.Application.ViewModel
{
    public abstract class ViewModelBase : NotifyPropertyChanged
    {

        protected ViewModelBase()
        {
            OnInitCommand();
            ExitCommand = new DelegateCommand(OnExitCommand);
            LoadedCommand = new DelegateCommand(OnLoadedCommand);
        }

        public ICommand ExitCommand { get; set; }

        public ICommand LoadedCommand { get; set; }

        public void OnExitCommand(object ob)
        {
            System.Windows.Application.Current.Shutdown();
        }

        public virtual void OnInitCommand()
        {
        }

        public virtual void OnLoadedCommand(object ob)
        {
        }

    }
}